import request from "@/utils/request";
import { GEN_SERVER } from "@/config/baseUrl";

// 查询生产人员
export function getProducingGroupUserByLineId(params) {
  return request({
    url: GEN_SERVER["produce-server"] + "/handover/groupProduceLog/getProducingGroupUserByLineId",
    method: "get",
    params,
    hideErrorMessage: true
  });
}

// 根据生产记录获取工单列表：
export function getListOrderByProduceId(params) {
  return request({
    url: GEN_SERVER["produce-server"] + "/handover/order/listOrderByProduceId",
    method: "get",
    params,
  });
}

// 查询指标配置详情
export function getLineProduceInfo(params) {
  return request({
    url: GEN_SERVER["index-server"] + "/value/line/getLineProduceInfo",
    method: "get",
    params,
  });
}

// 查询品控任务执行情况
export function getTaskSummary(data) {
  return request({
    url: GEN_SERVER["form-server"] + "/task/missionCenter/boardTaskSummary",
    method: "post",
    data,
  });
}

// 查询看板任务内容
export function getTaskContent(data) {
  return request({
    url: GEN_SERVER["form-server"] + "/task/taskBoard/queryBoardContent",
    method: "post",
    data,
  });
}

// 获取电耗情况
export function getLineElecUseInfo(params) {
  return request({
    url: GEN_SERVER["index-server"] + "/value/line/getLineElecUseInfo",
    method: "get",
    params,
  });
}

// 查看设备停机情况
export function getEquipmentOffInfo(params) {
  return request({
    url: GEN_SERVER["produce-server"] + "/data/equipment/run/getEquipmentOffInfoByLineId",
    method: "get",
    params,
  });
}

// 查询水耗信息
export function getLineWaterUseInfo(params) {
  return request({
    url: GEN_SERVER["index-server"] + "/value/line/getLineWaterUseInfo",
    method: "get",
    params,
  });
}